package com.slz3.business.module.drawManagement.draGoods.service;

import com.slz3.business.module.drawManagement.draGoods.domain.DraGoods;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.util.MultiValueMap;

import java.util.List;
import java.util.Optional;
import java.util.UUID;
import java.util.stream.Stream;

/**
 * 非事务型 service
 */
public interface DraGoodsService {

    DraGoods save(DraGoods draGoods);

    Page<DraGoods> page(MultiValueMap<String,String> queryParams);

    DraGoods modify(DraGoods draGoods);

    Optional<DraGoods> single(UUID uuid);

    List<DraGoods> findAllByUuids(Iterable<UUID> uuids);

    List<DraGoods> delete(List<DraGoods> draGoodsList);
}
